<%@page import="com.enterprise.domain.Node"%>
<%@page import="com.enterprise.daoImpl.NodeDaoImpl"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="Inc/Foot.jsp" %>
<%
	System.out.println(new NodeDaoImpl().getNodes(Integer.parseInt(pageContext.getRequest().getParameter("id"))));
	Node node=new NodeDaoImpl().getNode(Integer.parseInt(pageContext.getRequest().getParameter("id")));
	%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
  if (document.form1.BigClassName.value=="")
  {
    alert("大类名称不能为空！");
    document.form1.BigClassName.focus();
    return false;
  }
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"><table width="80%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td align="center" valign="top"><br>
            <strong>新 闻 类 别 设 置</strong> <br> <br> <form name="form1" method="post" action="node-update.action">
              <table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="border">
                <tr bgcolor="#A4B6D7" class="title"> 
                  <td height="25" colspan="2" align="center"><strong>修改大类名称</strong></td>
                </tr>
                <tr class="tdbg"> 
                  <td width="126" bgcolor="#C0C0C0"><strong>大类ID：</strong></td>
                  <td width="204" bgcolor="#E3E3E3"><%=node.getId()%> <input name="id" type="hidden" id="id" value="<%=node.getId()%>"> 
                    <input name="parentId" type="hidden" id="OldBigClassName" value="<%=node.getParentId()%>"></td>
                </tr>
                <tr class="tdbg"> 
                  <td width="126" bgcolor="#C0C0C0"><strong>大类名称：</strong></td>
                  <td bgcolor="#E3E3E3"> <input name="className" type="text" id="NewBigClassName" value="<%=node.getClassName()%>" size="20" maxlength="30"></td>
                </tr>
                <tr class="tdbg"> 
                  <td align="center" bgcolor="#C0C0C0">&nbsp;</td>
                  <td align="center" bgcolor="#E3E3E3"> <div align="left"> 
                      <input type="hidden" id="Action" value="Modify">
                      <input type="submit" id="Save" value=" 修 改 ">
                    </div></td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table>
  </td>
  </tr>
</table>
<%@include file="Inc/Foot.jsp" %>
